package com.cdtu.store.common.utils;

import java.util.concurrent.*;

public class ThreadUtils {

    private static final ExecutorService es = new ThreadPoolExecutor(10,20,10, TimeUnit.SECONDS,new ArrayBlockingQueue<Runnable>(10),new ThreadPoolExecutor.DiscardOldestPolicy());

    public static void execute(Runnable runnable) {
        es.submit(runnable);
    }
}